package com.settlement.system.model.vo;

import lombok.Data;

import java.io.Serializable;
import java.math.BigDecimal;

/**
* <p>
* 凭证明细表
* </p>
*
* @author huangrensen
* @since 2024-08-26
*/
@Data
public class SysVoucherItemVo implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
    * ID
    */
    private Long id;


    /**
    * 凭证主表id
    */
    private Long voucherId;


    /**
    * 资金类别1
    */
    private String fundsType;


    /**
    * 借贷方向
    */
    private String borrowing;


    /**
    * 摘要
    */
    private String explanation;


    /**
    * 末级科目编码
    */
    private String lastCode;


    /**
    * 一级科目名称
    */
    private String firstName;


    /**
    * 末级科目名称
    */
    private String lastName;


    /**
    * 银行
    */
    private VoucherItem bank;


    /**
    * 银行账号
    */
    private VoucherItem bankAccount;


    /**
    * 部门
    */
    private VoucherItem dept;


    /**
    * 供应商
    */
    private VoucherItem supplier;


    /**
    * 客户
    */
    private VoucherItem customer;


    /**
    * 原币金额
    */
    private BigDecimal amount = BigDecimal.ZERO;


    /**
    * 借方金额
    */
    private BigDecimal debitAmount = BigDecimal.ZERO;


    /**
    * 贷方金额
    */
    private BigDecimal creditAmount = BigDecimal.ZERO;

}
